#ifndef AVFILESTOREMP3_H
#define AVFILESTOREMP3_H

#include "AVFileStoreAbstract.h"

class AVFileStoreMP3 : public AVFileStoreAbstract
{
    Q_OBJECT
public:
    AVFileStoreMP3(const QString &fileName);

    virtual bool init() override;
    virtual bool destory() override;

    virtual bool fillFrame(AVFrame *frame) override;

private:

private:
    QString m_fileName;

    FILE *m_mp3File = nullptr;
    AVCodecContext *m_codecCtx = nullptr;

//    AVFrame *m_dstFrame = nullptr;

    int mp3SampleRate = 44100;
    int mp3Channels = 2;
    AVSampleFormat mp3Format = AV_SAMPLE_FMT_S16P;

};

#endif // AVFILESTOREMP3_H
